package com.itheima.app.mapper;

import com.itheima.app.pojo.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    @Select("select * from dept where id=#{id}")
    User findById(Integer id);

    @Select("select * from dept")
    List<User> findAll();
}
